//
//  XMLParser.h
//  XmlDemo
//
//  Created by ellenpage on 12-11-27.
//  Copyright (c) 2012年 ellenpage. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol XmlDelegate <NSObject>

- (void)startParser:(NSString *)parserName;
- (void)findCharacters:(NSString *)contentName elenment:(NSString *)str;
- (void)endParser:(NSString *)parserName;

@end

@interface XMLParser : NSObject<XmlDelegate>

@property (retain, nonatomic) NSXMLParser *parser;

@property (retain, nonatomic) NSString *elenmentStr;

@property (retain, nonatomic) id<XmlDelegate>delegate;

+ (XMLParser *)sharedInstance;

- (void)startParser:(NSData *)data;

@end
